<?php 
global $USER_LEVEL_BONUS_TXT;
?>
<h1>Массовое переоформление бонусов. Шаг 1</h1>

<form method=post action='modify/' enctype='multipart/form-data' id='f'>
	<table class='edit' cellspacing=0>
		<tr>
			<td>Участник</td>
			<td><select name='user_id'>
				<option value=''></option>
				<?php foreach($users as $u) { ?>
					<option value='<?php echo $u['id']?>' <?php if(@$oper['user_id'] == $u['id']) echo 'selected'; ?>><?php echo $u['fio']?> (<?=$u['email']?>)</option>
				<?php } ?>
			</select></td>
		</tr>
		<tr>
			<td>Тип бонуса</td>
			<td><select name='type'>
				<option value='ref'>Реферальный бонус</option>
				<?php
				$l = 1;
				while(strlen($me['level']) >= $l)
				{
					?>
					<option value='<?=$l?>'>Бонус <?=$USER_LEVEL_BONUS_TXT[str_repeat("*", $l)]?></option>
					<?
					$l++;
				}
				 ?>
			</select></td>
		</tr>
	</table>
	<br>
	<input type='button' value='Дальше' name='subm' onclick="self.location.href='<?=base_url()?>modify/mass/' + this.form.user_id.value + '/' + this.form.type.value;">

</form>


